package com.nsu.cl.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.nsu.cl.pojo.Achievements;
import com.nsu.cl.service.AchievementsService;
import com.nsu.cl.mapper.AchievementsMapper;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import org.springframework.util.StringUtils;

/**
* @author 52618
* @description 针对表【achievements(成绩表)】的数据库操作Service实现
* @createDate 2023-02-16 14:21:02
*/
@Service
@Transactional
public class AchievementsServiceImpl extends ServiceImpl<AchievementsMapper, Achievements>
    implements AchievementsService{

    @Override
    public IPage<Achievements> getSubjectByOpr(Page<Achievements> pageParam, Achievements achievements) {

        Page<Achievements> page = baseMapper.getInfo(pageParam, achievements);

        return page;
    }

    @Override
    public Achievements getSubjectById(Long id) {
        return baseMapper.getInfoById(id);
    }
}




